package com.okhttp.network;



import com.google.gson.Gson;

import java.lang.reflect.Type;


/**
 * Created by yangqi on 17/6/10.
 */
public class GsonHelper {
    public static <T> T getResData(String result,Type t1){
        try {
            Gson gson = new Gson();
            return gson.fromJson(result,t1);
        }catch (Exception e){
            return null;
        }
    }

}
